import { defineStore } from "pinia";

interface loadingState {
  show: Boolean;
}

const loadingStore = defineStore("loading", {
  state: (): loadingState => ({
    show: false
  }),
  actions: {
    setLoading(val: Boolean) {
      this.show = val;
    }
  }
});

export default loadingStore;